package com.dr.java.day03;

/**
 * Created by rui on 2017/12/29.
 */
public class Print99 {
    public static void main(String[] args) {
        int row = 8;
        print(row);
        System.out.println("===================");
        printRactangle(3, 5);
    }

    private static void printRactangle(int row, int col) {
        for (int i = 0; i < row; i++) {
            for (int j = 0; j < col; j++) {
                System.out.print("*");
            }
            System.out.println();
        }
    }

    private static void print(int row) {
        for (int i = 0; i <= row; i++) {
            for (int i1 = 1; i1 <= i; i1++) {
                System.out.print(i + "*" + i1 + "=" + (i * i1) + "\t");
            }
            System.out.println("");
        }
    }


}
